package cnpm.service.impl;

import java.util.List;

import cnpm.dao.DepartmentDAO;
import cnpm.dao.impl.DepartmentDAOImpl;
import cnpm.entity.Department;
import cnpm.service.DepartmentService;

public class DepartmentServiceImpl implements DepartmentService {

	private DepartmentDAO dDAO;
	
	public DepartmentServiceImpl() {
		dDAO = new DepartmentDAOImpl();
	}
	
	@Override
	public List<Department> getAllDepartments() {
		return dDAO.getAllDepartments();
	}

	@Override
	public Department getDepartmentByID(int deptID) {
		return dDAO.getDepartmentByID(deptID);
	}

}
